package top.lc951.myglide.manager;

import android.content.Context;

import androidx.annotation.NonNull;

import top.lc951.myglide.util.Synthetic;

/**
 * An Android Lifecycle wrapper that uses {@link SingletonConnectivityReceiver} to observer
 * connectivity changes, allowing for registration to be removed when our listener is being
 * destroyed as part of the Android lifecycle.
 */
public class DefaultConnectivityMonitor implements ConnectivityMonitor{
    private final Context context;

    @SuppressWarnings("WeakerAccess")
    @Synthetic
    final ConnectivityListener listener;

    DefaultConnectivityMonitor(@NonNull Context context,@NonNull ConnectivityListener listener){
        this.context=context;
        this.listener=listener;
    }
    private void register(){
        SingletonConnectivityReceiver
    }
    @Override
    public void onStart() {

    }

    @Override
    public void onStop() {

    }

    @Override
    public void onDestroy() {

    }
}
